using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;

public class CardManager : MonoBehaviour, IPointerDownHandler
{
    public bool InDeckPool { get; set; } = false;

    public void OnPointerDown(PointerEventData eventData)
    {
        if (this.InDeckPool)
        {
            DeckManager.Instance.SendDeckToWareHouse(gameObject);
        }
        else
        { 
            DeckManager.Instance.SendWareHouseToDeck(gameObject);

        }
    }
}
